<?php

namespace App\Models\Game\Flying;

use App\Models\MainDB\Gift;
use Illuminate\Database\Eloquent\Model;

class FlyingNext extends Model
{
    protected $connection = 'mysql_flying';

    protected $table = 'flying_next';     //数据库内完整表名

    protected $primaryKey = 'id';    //主键名

    protected $fillable = [
        'id',
        'gift_id',
        'number',
        'sold',//1上架2下架
        'type',
        'ratio',//爆率
    ];

    public $timestamps = false;

    public function gift()
    {
        return $this->belongsTo(Gift::class, 'gift_id', 'id');
    }
}
